Einhugur macOS Bridge plugin.

NSView.SetFrameOrigin Method

Sets the origin of the view’s frame rectangle to the specified point, effectively repositioning it within its superview.

SetFrameOrigin(
   x as Double,
   y as Double)

Parameters

x
X part of the point that is the new origin of the view's frame.
y
Y part of the point that is the new origin of the view's frame. (Note that y usually starts from bottom)

Remarks

Changing the frame does not mark the view as needing to be displayed. Set the NeedsDisplay property to True when you want the view to be redisplayed.

See Also

NSView Class